from . import index_bp
from flask import render_template,current_app
from info import create_app,models


# 127.0.0.1:5000/
@index_bp.route("/")
def index():
    return render_template("index.html")


#返回web的头像图标
@index_bp.route('/favicon.ico')
def favicon():
    """返回项目图标"""
    # send_static_file: 将static中的静态文件发送给浏览器
    return current_app.send_static_file("news/favicon.ico")